{% extends "orgs/base.html" %}

{% load i18n %}
{% load extra_tagging_tags %}
{% load threadedcommentstags %}
{% load comments_tag %}
{% load attachment_inclusion_tag %}

{% block head_title %}{{ topic.title }}{% endblock %}

{% block body %}
    <p><a href="{% url meeting_details meeting_slug=topic.meeting.slug %}">&larr; {% trans "Back to Meeting " %} {{ topic.meeting }}</a></p>
    

            <div class="meta">
                <div class="details">Created by <a href="{% url profiles.views.profile topic.creator.username %}">{{ topic.creator }}</a></div>
                {{ topic.created|date }}
            </div>
            <div class="bulk">
                <h1>{{ topic.title }}</h1>
				<h2>Lead: {{ topic.lead_name }} </h2>
                <div class="body">{{ topic.body|urlize|linebreaks }}</div>
                <p>{% show_tags_for topic %}</p>
                {% ifequal user topic.creator %}
					<form method="POST" action="{% url meeting_topic_delete topic.id %}">
						<input type="submit" value="{% trans "Delete Topic" %}" />
						<input type="hidden" name="next" value="{% url meeting_topics meeting_slug=topic.meeting.slug %}" />
					</form>
					<p><a href="{{ request.path }}edit/">Edit Topic</a></p>
                {% endifequal %}
            </div>

		{% comments topic %}

	<div>
		<hr />
		{% attachments topic %}
	</div>
{% endblock %}